<%@page import="java.util.UUID"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/common/taglib.jsp" %>
<%
    String uuid = UUID.randomUUID().toString();
    request.setAttribute("uuid", uuid);
%>
<div class="container-fluid am-margin-top">
	<form id="selReDealForm">
		<div class="row">
			<div class="col-md-12">
				<div class="form-group"><label>重启原因</label>
					<select class="form-control"  name="cqyy" check-type="required">
		                <pf:dataDic var="item" dicCode="CQYY">
		                    <option value="${item.value}">${item.name}</option>
		                </pf:dataDic>
		            </select>
				</div>
			</div>
		</div>
	</form>
	<nav class="navbar navbar-default">
	  <div class="container-fluid">
	  	<div class="collapse navbar-collapse">
	  		<ul class="nav navbar-nav navbar-right">
		  		<li>
		  			<button type="button" class="btn btn-primary navbar-btn" id="selReDealBtn">重启</button>
		  		</li>
		  	</ul>
        </div>
	  </div>
	</nav>
</div>
<script type="text/javascript">
	
    $(function () {
    	var winId = '${param.winId}';
    	$("#selReDealForm").validation();
    	$("#selReDealBtn").click(function(){
	    	if($("#selReDealForm").valid()){
	    		layer.confirm('确认是否重启此工单？', {
          		  btn: ['是','否'] //按钮
        		}, function(index){
    	    		var data = {cqyy:$("select[name=cqyy]").val()};
    	    		webUtils.topicPublish("dialog.submit.success."+winId, data);
        			layer.close(index);
        		});
	    	}
    	});
    });    
</script>
